Skip to content

GH-50103: [C++] Missing iosfwd include in cpp/src/arrow/util/string_util.h#50101

Merged
pitrou merged 2 commits into
apache:mainfrom
atupone:patch-1
Jun 10, 2026
Merged

GH-50103: [C++] Missing iosfwd include in cpp/src/arrow/util/string_util.h#50101
pitrou merged 2 commits into
apache:mainfrom
atupone:patch-1

Conversation

@atupone

@atupone atupone commented Jun 4, 2026

Copy link
Copy Markdown

std::ostringstream requires corresponding header inclusion.

Bug raised while building with gcc-17

https://bugs.gentoo.org/976604

std::unique_ptr<std::ostringstream> sstream_; require sstream.
Bug raised while building with gcc-17
https://bugs.gentoo.org/976604
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@atupone atupone changed the title Add sstream include to string_util.h GH-50103: [C++] Missing sstream include in cpp/src/arrow/util/string_util.h Jun 5, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

⚠️ GitHub issue #50103 has been automatically assigned in GitHub to PR creator.

@raulcd raulcd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Seems related to this commit on GCC:
gcc-mirror/gcc@396ad1175450

cc @pitrou

@raulcd raulcd requested a review from pitrou June 5, 2026 15:00
@github-actions github-actions Bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Jun 5, 2026
Comment thread cpp/src/arrow/util/string_util.h Outdated

#include <memory>
#include <ostream>
#include <sstream>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please include <iosfwd> instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I didn't squash. Should I ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, you don't have to.

@pitrou pitrou changed the title GH-50103: [C++] Missing sstream include in cpp/src/arrow/util/string_util.h GH-50103: [C++] Missing iosfwd include in cpp/src/arrow/util/string_util.h Jun 10, 2026
@pitrou pitrou merged commit 90a4497 into apache:main Jun 10, 2026
58 of 59 checks passed
@pitrou pitrou removed the awaiting merge Awaiting merge label Jun 10, 2026
@pitrou

pitrou commented Jun 10, 2026

Copy link
Copy Markdown
Member

Thank you @atupone ! This is now merged.

@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 90a4497.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 27 possible false positives for unstable benchmarks that are known to sometimes produce them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants